<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>vshowdemo</title>
    <script src="https://cdn.jsdelivr.net/npm/vue/dist/vue.js"></script>
</head>
<body>
<div id="app">
    <img src="img.png" v-show="true" @click="shift">
    <img src="img.png" v-show="isShow">
    <img src="img.png" v-show="year>10">
</div>

<script>
    const app = new Vue({
        el:"#app",      //挂载点
        data:{          //数据集
            isShow:true,
            year:9
        },
        methods:{
            shift:function () {
                this.isShow = !this.isShow
            }
        }      //事件集
    })
</script>
</body>
</html>
